
<template>
    <div ref="content3d" class="content3d"></div>
</template>

<script setup lang="ts">
import Box from "./Box";
import { ref, onMounted } from "vue";
const content3d = ref("content3d");

onMounted(() => {
    new Box(content3d.value);
})
</script>

<style lang="scss" scoped>
.content3d {
    position: relative;
    width: 100%;
    height: 100vh;
}
</style>
<style>
/* 粮仓标签的样式属性 */
.tag {
    box-shadow: 0 0 2px #00ffff inset;
    background: linear-gradient(#00ffff, #00ffff) left top,
        linear-gradient(#00ffff, #00ffff) left top,
        linear-gradient(#00ffff, #00ffff) right bottom,
        linear-gradient(#00ffff, #00ffff) right bottom;
    background-repeat: no-repeat;
    background-size: 1px 6px, 6px 1px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 16px;
    padding: 4px 10px;
}
</style>